stack: Only map children when necessary
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 20 May 2016 22:07:10 +0000 (00:07 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 May 2016 22:56:34 +0000 (00:56 +0200)
commit57efcabfd68576d974cf8917307578f96ff72f98
treef1a0a94d5f727bd4b26b837e2f5528d9482baaeb
parent386ead4243b9e45d60f6a7aa6812f68e8c119ba3
stack: Only map children when necessary

gtk_widget_set_parent() will map the widget if the parent is mapped
and the widget is both visible and child-visible. As we currently
only set the child visibility after adding the child, we immediately
map all children that are added to a mapped stack, even when they
are not actually shown. Avoid this by setting the child visibility
before adding the child, so widgets are only mapped when shown.

https://bugzilla.gnome.org/show_bug.cgi?id=766737
gtk/gtkstack.c